package com.ld.control.business.process.vo.resp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 * 任务流程模板
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-24
 */
@Data
@Schema(description = "任务流程模板")
public class ProcessTmpRespVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "任务模板和流程关联的id,删除流程模板和任务模板关联关系用这个id")
    private Long taskProcessTmpId;

    @Schema(description = "流程所在区域")
    private Long regionId;

    @Schema(description = "流程模板名称")
    private String name;

    @Schema(description = "区域中文名")
    private String regionName;

    @Schema(description = "流程模板类型：0普通流程，1:初始化流程，2结束流程，3内部流程")
    private Integer type;

    @Schema(description = "序列号，按照从小到大的顺序执行流程")
    private Integer serialNumber;

    @Schema(description = "完整的节点信息json格式，用于前段展示")
    private String allNodeInfo;

}
